// @ts-check
import { defineStore, acceptHMRUpdate } from 'pinia'
import { reactive } from "vue"

export const mainStore = defineStore({
  id: 'main',
  state: () => ({
    tabbar:0,
    NIMoption: null,
    message: reactive({
      chatRecord: {}, // 聊天记录
      chatFriends: null,
      account: '', // 账号
      token: '', // token
      name: '' // 名字
    })
  }),
  getters: {
    items: (state) => {

    }
     
  },
  actions: {

  },
})

if (import.meta.hot) {
  import.meta.hot.accept(acceptHMRUpdate(mainStore, import.meta.hot))
}
